function deleteData(id)
{
    swal({
        title              : "您确定要删除这条信息吗",
        text               : "删除后将无法恢复，请谨慎操作！",
        type               : "warning",
        showCancelButton   : true,
        confirmButtonColor : "#DD6B55",
        confirmButtonText  : "删除",
        cancelButtonText   : "取消",
        closeOnConfirm     : false
    }, function () {
        $.ajax({
            type     : "post",
            url      : "delete",
            data     : {'id': id},
            dataType : "json",
            async    : false,
            success  : function (msg) {
                if (msg.code == 20000) {
                    swal("删除成功！", "您已经永久删除了这条信息。", "success");
                    location.reload();
                } else {
                    alert(msg.message);
                    location.reload();
                }
            }
        });
    });
}
